package city.spring.modules.personnel.repository;

import city.spring.modules.personnel.entity.EmployeeRewardPunishmentEntity;
import city.spring.modules.personnel.vo.EmployeeRewardPunishmentEntityVO;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 存储库：员工奖惩
 *
 * @author 潘小梅
 * @date 2020-04-08 15:12:03
 */
@Repository
public interface EmployeeRewardPunishmentRepository extends BaseMapper<EmployeeRewardPunishmentEntity> {
    /**
     * 分页获取奖惩记录
     *
     * @param page    分页对象
     * @param wrapper 查询对象
     * @return 奖惩记录
     */
    IPage<EmployeeRewardPunishmentEntityVO> listPage(Page<? extends EmployeeRewardPunishmentEntity> page, @Param(Constants.WRAPPER) Wrapper<? extends EmployeeRewardPunishmentEntity> wrapper);
}